package com.ruyuan.course.basic.biz.dao.impl;

import com.ruyuan.course.basic.biz.dao.DemoDao;
import com.ruyuan.course.basic.biz.domain.Demo;
import com.ruyuan.course.basic.biz.mapper.DemoMapper;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

/**
 * @author demo
 * version: 1.0
 * Description:demo dao组件实现类
 **/
@Service
public class DemoDaoImpl implements DemoDao {

    @Autowired
    private DemoMapper demoMapper;

    @Override
    public Demo getById(Integer id) {
        return demoMapper.getById(id);
    }
}